package com.java83.service.impl;


import com.java83.dao.ManagerDao;
import com.java83.service.AaaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

@Service
public class Impl implements AaaService {

    @Autowired
    private ManagerDao managerDao;
    /*此注解优先用byType，而后是byName*/

    /*@Transactional*/
    public Map findOne(int id) {
        Map<String, Object> one = managerDao.getOne(id);
        return one;
    }
}

